package tencent;

import java.util.Scanner;

public class Main4 {
    public static void main(String[] args) {
        int n;
        long ans=0L;
        Scanner scanner=new Scanner(System.in);
        n=scanner.nextInt();
        long a[]=new long[n];
        for(int i=0;i<n;++i){
            a[i]=scanner.nextLong();
        }


    }
}
